function init() {

    var titleDom = document.getElementById('title');
    var contentDom = document.getElementById('content');

    titleDom.innerHTML = jsInterface.getTitle();
    contentDom.innerHTML = jsInterface.getContent();

    var as = document.getElementsByTagName("a");
    for (var i = 0; i < as.length; i++) {
        var a = as[i];
        a.setAttribute("href", "javascript:void(0)");
    }

    var imgEls = contentDom.getElementsByTagName("img");
    var imgs = new Array();
    for (var i = 0; i < imgEls.length; i++) {
        var imgDom = imgEls[i];
        var src = imgDom.getAttribute("src");
        if (!src) {
            continue;
        }
        imgDom.setAttribute('url', src);
        imgDom.setAttribute('src', src);
        imgDom.setAttribute('alt', ' ');
        imgDom.setAttribute('border', '0');
        imgDom.style.backgroundRepeat = 'no-repeat';
        imgDom.style.backgroundSize = 'contain';
        imgDom.style.backgroundPosition = 'center center';
        imgDom.style.borderStyle = 'none';
        imgDom.style.backgroundImage = 'url(' + src + ')';
        imgDom.style.width = '100%';
        imgDom.style.height = 'auto';

        imgs[i] = src;
        imgDom.onclick = function () {
            jsInterface.goToPopupBox(this.getAttribute('url'), imgs);
        };
    }

}